package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.HomeworkFinished;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface HomeworkFinishedMapper {
    int insert(HomeworkFinished homeworkFinished);
    HomeworkFinished selectByUserIdAndHomeworkId(@Param("userId") Integer userId, @Param("homeworkId") Integer homeworkId);
    List<HomeworkFinished> selectByUserIdAndHomeworkIds(@Param("userId") Integer userId, @Param("homeworkIds") List<Integer> homeworkIds);
}
